__author__ = 'seamus and arman'

import unittest
from ChessBoard import *

class TestCanAddTextMove(unittest.TestCase):

    def setUp(self):
        self.chessboard = ChessBoard()
        self.chessboard.resetBoard()

    def tearDown(self):
        self.chessboard = None

    #def testMethod(self):
    #    self.assertEqual(1 + 2, 3, "1 + 2 not equal to 3")

    def testInvalidInput(self):
        move = 'zz0010zz'
        self.assertFalse (self.chessboard.addTextMove(move))
    
    def testValidInput(self):
	move = 'e2e4'
	self.assertTrue(self.chessboard.addTextMove(move))


if __name__ == "__main__":
    unittest.main()
